cmake_minimum_required(VERSION 3.0.0)
project(testdemo)

list(APPEND OHOS_C_COMPILER_FLAGS -march=armv7a) 

add_executable(testdemo demo.cpp)
target_include_directories(testdemo PUBLIC 
    ../interfaces/kits/c)

target_link_directories(testdemo PUBLIC /home/wcx/wcx/ohos1104/out/rk3568/ai/neural_network_runtime/)
target_link_libraries(testdemo PUBLIC
    hilog_ndk.z.so
    libneural_network_core.so
    libneural_network_runtime.so)

set(CMAKE_EXE_LINKER_FLAGS "${cmake_exe_linker_flags} -Wl,--allow-shlib-undefined")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7a")